export default [
  {
    path: '/',
    redirect: '/fish',
  },
  {
    path: '/fish',
    name: 'fish',
    meta: {
      title: '观赏鱼',
    },
    children: [
      {
        path: '',
        name: 'fish-list',
        meta: {
          title: '观赏鱼列表',
        },
        component: () => import('@/views/fish/index.vue'),
      },
      {
        path: 'detail/:id',
        name: 'fish-detail',
        meta: {
          title: '观赏鱼详情',
        },
        props: true,
        component: () => import('@/views/fish/detail.vue'),
      },
    ],
  },
];
